package www.lagou.entity;

/**
 * 交易记录表
 */
public class Transaction {

    private Integer id;

    /**
     * 交易卡号
     */
    private String cardId;
    /**
     * 交易类型
     */
    private String traType;
    /**
     * 交易金额
     */
    private double traMoney;
    /**
     * 交易日期
     */
    private String traDate;
    /**
     * 卡号对应的账号信息
     */
    private Account account;

    public Transaction() {
    }

    public Transaction(Integer id, String cardId, String traType, double traMoney, String traDate) {
        this.id = id;
        this.cardId = cardId;
        this.traType = traType;
        this.traMoney = traMoney;
        this.traDate = traDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getTraType() {
        return traType;
    }

    public void setTraType(String traType) {
        this.traType = traType;
    }

    public double getTraMoney() {
        return traMoney;
    }

    public void setTraMoney(double traMoney) {
        this.traMoney = traMoney;
    }

    public String getTraDate() {
        return traDate;
    }

    public void setTraDate(String traDate) {
        this.traDate = traDate;
    }
}
